package com.community.charge.service.impl;

import com.community.charge.domain.vo.ChargeBuildingVo;
import com.community.charge.mapper.BuildingVoMapper;
import com.community.charge.service.BuildingVoService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class BuildingVoServiceImpl implements BuildingVoService {

    @Autowired
    private BuildingVoMapper buildingVoMapper;

    //根据社区绑定楼宇下拉框
    @Override
    public List<ChargeBuildingVo> getBuildingVoNameAndId(Integer id) {
        return buildingVoMapper.getBuildingVoNameAndId(id);
    }

    //绑定楼宇下拉框
    @Override
    public List<ChargeBuildingVo> getBuildingVoIdAndName() {
        return buildingVoMapper.getBuildingVoIdAndName();
    }
}
